import { createApp } from 'vue'
import App from './App.vue'
// 全局样式
import "@/assets/styles/index.scss"
// 路由守卫
import '@/router/modules/permission.ts'
import 'element-plus/dist/index.css'
// elementplus 暗黑模式
import 'element-plus/theme-chalk/dark/css-vars.css'
// 路由
import router from '@/router/index.ts'
// 全局数据共享
import pinia from '@/store/index.ts'
// 自定义插件 :全局引入组件
import globalComponent from "@/utils/Global";
// 导入自定义指令
import {isHasBtn} from '@/directive/hasBtn.ts'

const app = createApp(App)

app.use(globalComponent)
app.use(router)
app.use(pinia)

// 自定义执行传入app实例
isHasBtn(app)


app.mount('#app')
